<div class="bus-express">
    <div class="nav">
        <div class="nav-li focus">运费模板</div>
    </div>
    <hr />

    <div class="infobox">
        <div class="bus-express-free">
            <h4>免邮费配置</h4>
            <p>这两个条件只要满足一个即可实现免运费</p>
            <label >
                <h5>满金额免运费：</h5>
                <android:input bind-input="{{'bus_loginer.info.express_free_total_price'}}" value="{{bus_loginer.info.express_free_total_price}}" label="请输入金额(元)" description="如果为0或者放空，则意味着不存在“满金额免运费”的订单" event-change="{{'$Event.bus.express.update_express_free'}}"></android:input>
            </label>
            <label >
                <h5>满件数免运费：</h5>
                <android:input bind-input="{{'bus_loginer.info.express_free_total_num'}}" value="{{bus_loginer.info.express_free_total_num}}" label="请输入数量" description="如果为0或者放空，则意味着不存在“满件数免运费”的订单" event-change="{{'$Event.bus.express.update_express_free'}}"></android:input>
            </label>
        </div>
        <h4>模板配置</h4>
        <div class="bus-express-list">
            <table class="paper-table">
                <thead>
                    <td>序号</td>
                    <td>运费模板名</td>
                    <td>物流公司</td>
                    <td>运费（￥）</td>
                    <td>操作</td>
                </thead>
                <tr>
                    <td><i class="icon-plus"></i></td>
                    <td class="bus-express-name">
                        <L:input bind-input="{{'$Cache.bus.express.new.name'}}" value="{{$Cache.bus.express.new.name}}" placehloder=""></L:input>
                    </td>
                    <td>
<selectSearch datalist-key="$Top.$Cache.all_express" use-value-as-result="true" value="{{$Cache.bus.express.new.express_com}}" search-placeholder="查询物流公司" bind-input="{{'$Cache.bus.express.new.express_com'}}">
    {{#each $Top.$Cache.express}}
    <optionItem value="{{name}}" search-data="{{name+key}}">{{name}}</optionItem>
    {{/each}}
</selectSearch>
                    </td>
                    <td class="bus-express-price">
                        <L:input bind-input="{{'$Cache.bus.express.new.express_price'}}" value="{{$Cache.bus.express.new.express_price}}" placehloder=""></L:input>
                    </td>
                    <td>
                        {{#if $Cache.bus.express.new._id}}
                            <button event-click="{{'$Event.bus.express.update_express'}}">确定修改</button>
                            <button event-click="{{'$Event.bus.express.cancel'}}">取消</button>
                        {{#else}}
                            <button event-click="{{'$Event.bus.express.add_express'}}">新增</button>
                        {{/if}}
                    </td>
                </tr>
                {{#each $Cache.bus.express.list}}
                <tr>
                    <td>{{$Index+1}}</td>
                    <td>{{name}}</td>
                    <td>{{express_com}}</td>
                    <td>{{#Fixed express_price}}</td>
                    <td>
                        <button event-click="{{'$Top.$Event.bus.express.to_update'}}">去修改</button>
                        <button event-click="{{'$Top.$Event.bus.express.remove_express'}}">删除</button>
                    </td>
                </tr>
                {{/each}}
            </table>
        </div>
    </div>
</div>
<style>
    .bus-express-name .L-input,.bus-express-price .L-input{
        margin: 0;
    }
    .bus-express-price .L-input{
        width: 100px;
    }
</style>